<?php
/**
 * index.php
 * @author ranuandra
 *
 * 9 Agu 2011 09:46:27
 *
 * 
 */
if(!$ajax)
{	
?>
<h1 class="title">
<?php 
if(isset($title))
{
	echo $title;
}
?></h1>
<div class="tbldata">
<?php 
} //end if request ajax
?>
<table class="data">
	<thead>
		<tr>
			<th>ID</th>
			<th>Role Name</th>
			<th>Controller</th>
			<th>Action</th>
		</tr>
	<thead>
	<tbody>
<?php 
if(isset($datas))
{
	foreach($datas as $data)
	{
?>
		<tr>
			<td><?php echo $data->id?></td>
			<td><?php echo $data->menu_name?></td>
			<td><?php echo $data->controller?></td>
			<td>
				<a href="<?php echo URL::base()?>menu/delete/<?php echo $data->id?>" class="clsform"><img src="<?php echo URL::base()?>assets/images/deletecell.png" alt="Hapus"></a>
				<a href="<?php echo URL::base()?>menu/edit/<?php echo $data->id?>" class="clsform"><img src="<?php echo URL::base()?>assets/images/edit.png" alt="Edit"></a>
			</td>
		</tr>
<?php 		
	}
}
?>
	</tbody>
</table>
<?php 
if(!$ajax)
{	
?>
</div>
<?php }?>